package com.yonyou.cyxdms.basedata.service.entity.questionaire;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;

import java.io.Serializable;

/**
 * <p>
 * 回访问卷与问题关联表
 * </p>
 *
 * @author renwd
 * @since 2019-09-19
 */
@TableName("tm_question_relation")
public class QuestionRelationPO extends DMSBasePO<QuestionRelationPO> {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷ID
     */
    @TableField("QUESTIONNAIRE_ID")
    private Long questionnaireId;
    /**
     * 问题ID
     */
    @TableField("QUESTION_ID")
    private Long questionId;
    /**
     * 问题顺序号
     */
    @TableField("QUESTION_SORT_NUM")
    private Integer questionSortNum;
    /**
     * 问卷编码
     */
    @TableField("QUESTIONNAIRE_CODE")
    private String questionnaireCode;
    /**
     * 问题编码
     */
    @TableField("QUESTION_CODE")
    private String questionCode;

    public QuestionRelationPO() {
        super();
    }


    public Long getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(Long questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Integer getQuestionSortNum() {
        return questionSortNum;
    }

    public void setQuestionSortNum(Integer questionSortNum) {
        this.questionSortNum = questionSortNum;
    }

    public String getQuestionnaireCode() {
        return questionnaireCode;
    }

    public void setQuestionnaireCode(String questionnaireCode) {
        this.questionnaireCode = questionnaireCode;
    }

    public String getQuestionCode() {
        return questionCode;
    }

    public void setQuestionCode(String questionCode) {
        this.questionCode = questionCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.questionnaireId;
    }

    @Override
    public String toString() {
        return "QuestionRelationPO{" +
                "questionnaireId=" + questionnaireId +
                ", questionId=" + questionId +
                ", questionSortNum=" + questionSortNum +
                ", questionnaireCode=" + questionnaireCode +
                ", questionCode=" + questionCode +
                "}";
    }

}
